package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ding
 * @since 2022-10-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_rakuten_coupon")
public class OrderRakutenCouponDo extends Model<OrderRakutenCouponDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("order_id")
    private Long orderId;

    @TableField("coupon_code")
    private String couponCode;

    @TableField("item_id")
    private Long itemId;

    @TableField("coupon_summary")
    private String couponSummary;

    @TableField("coupon_name")
    private String couponName;

    @TableField("coupon_total_price")
    private Integer couponTotalPrice;

    @TableField("coupon_unit")
    private Integer couponUnit;

    @TableField("coupon_price")
    private Integer couponPrice;

    @TableField("item_detail_id")
    private Long itemDetailId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
